import Index from "@/pages/index/index.vue"


const routes = [
    { path: '/', redirect: '/login' },
    {
        path: '/home', component: Index, children: [
            {
                path: '',
                component: () => import('@/pages/home/MainHome.vue')
            },
            {
                path: 'alarmSetting',
                component: () => import('@/pages/alarmSetting/alarmSetting.vue')
            }, {
                path: 'bindCar',
                component: () => import('@/pages/bindCar/BindCar.vue')
            }, {
                path: 'carGroup',
                component: () => import('@/pages/carGroup/CarGroup.vue')
            }, {
                path: 'userRole',
                component: () => import('@/pages/userRole')
            }, {
                path: 'acountSetting',
                component: () => import('@/pages/acountSetting')
            }, {
                path: 'statisticalAnalysis',
                component: () => import('@/pages/statistical-analysis')
            }
        ]
    },
    { path: '/login', component: () => import('@/pages/login/login.vue') }
]

export default routes